//
//  BaseViewManager.m
//  ZYOnlineSchool
//
//  Created by 毕武侠 on 2017/2/24.
//  Copyright © 2017年 bwx. All rights reserved.
//

#import "BaseViewManager.h"

@interface BaseViewManager ()

//@property (nonatomic, strong, readwrite) UIView    *view;
@property (nonatomic, strong, readwrite) BaseModel *model;
@property (nonatomic, strong, readwrite) NSMutableArray *datas;

@end

@implementation BaseViewManager

- (instancetype)initWithSuperView:(UIView *)view {
    self = [super init];
    if (self) {
        self.superView = view;
        
        [self setupConfigure];
    }
    return self;
}

- (instancetype)initWithSuperView:(UIView *)view ofModel:(BaseModel *)model {
    self = [super init];
    if (self) {
        self.superView = view;
        self.model = model;
        
        [self setupConfigure];
    }
    return self;
}

- (instancetype)initWithSuperView:(UIView *)view ofDatas:(NSMutableArray *)datas {
    self = [super init];
    if (self) {
        self.superView = view;
        self.datas = datas;
        
        [self setupConfigure];
    }
    return self;
}

- (instancetype)initWithModel:(BaseModel *)model {
    self = [super init];
    if (self) {
        self.model = model;

        [self setupConfigure];
    }
    return self;
}

- (instancetype)initWithDatas:(NSMutableArray *)datas {
    self = [super init];
    if (self) {
        self.datas = datas;
        
        [self setupConfigure];
    }
    return self;
}

- (instancetype)initWithView:(UIView *)view {
    self = [super init];
    if (self) {
        self.view = view;
        
        [self setupConfigure];
    }
    return self;
}
- (instancetype)initWithView:(UIView *)view ofModel:(BaseModel *)model {
    self = [super init];
    if (self) {
        self.view = view;
        self.model = model;
        
        [self setupConfigure];
    }
    return self;
}

- (instancetype)initWithView:(UIView *)view ofDatas:(NSMutableArray *)datas {
    self = [super init];
    if (self) {
        self.view = view;
        self.datas = datas;
        
        [self setupConfigure];
    }
    return self;
}

- (void)setupConfigure {}

- (void)uploadXIBViewConstraint:(UIView *)aView{}

@end
